import { http } from '@/utils/http'

export default {
  // 点单服务列表
  getOrderList: (params) =>
    http.get('/hall/hallOrder/list', params),
  // 新增活动申请
  addActivityApplication: (data) =>
    http.post('/hall/hallActivityDeclare/selfAdd', data),
  // 编辑活动申请
  editActivityApplication: (data) =>
    http.post('/hall/hallActivityDeclare/selfEdit', data),
  // 新增点单服务申请
  addOrderApplication: (data) =>
    http.post('/hall/hallOrderDeclare/selfAdd', data),
  // 点单服务详情
  getOrderDetail: (params) =>
    http.get(`/hall/hallOrder/queryById`, params),
  // 预约服务
  bookingOrder: (data) =>
    http.post('/hall/hallOrderSubscribe/selfAdd', data),
  // 获取申请被驳回的信息
  getRefuseMessage: (params) =>
    http.get(
      '/hall/hallActivityDeclare/approveRecord',
      params,
    ),

  // 点单服务申请列表
  getOrderDeclareList: (params) =>
    http.get('/hall/hallOrderDeclare/list', params),
  // 获取点单服务申请详情
  getOrderDeclareDetail: (params) =>
    http.get('/hall/hallOrderDeclare/queryById', params),
  // 点单服务审批
  approveOrderDeclare: (data) =>
    http.post('/hall/hallOrderDeclare/approve', data),

  // 点单申请列表
  getOrderSubscribeList: (params) =>
    http.get('/hall/hallOrderSubscribe/list', params),
  // 获取点单申请详情
  getOrderSubscribeDetail: (params) =>
    http.get('/hall/hallOrderSubscribe/queryById', params),
  // 点单审批
  approveOrderSubscribe: (data) =>
    http.post('/hall/hallOrderSubscribe/approve', data),

  // 文化共享菜单 礼堂点单服务-分页列表查询
  getShareOrderPage: (params) =>
    http.get('/api/order/orderPage', params),
  // 文化共享菜单 礼堂点单服务-通过id查询
  getShareOrderDetail: (params) =>
    http.get('/api/order/queryById', params),
  // 文化共享菜单 礼堂点单服务-历史评价
  getShareOrderEvaluationPage: (params) =>
    http.get('/api/order/evaluationPage', params),
  // 文化共享菜单 礼堂点单服务-评价
  addShareOrderEvaluation: (data) =>
    http.post('/hall/hallOrderEvaluation/selfAdd', data),
  // 文化共享菜单 判断是否评价
  judgeShareOrderEvaluation: (params) =>
    http.get('/hall/hallOrderEvaluation/isEvaluation', params),
}
